var casper = require("casper").create({
	clientScript: [
		'includes/jquery.js',
		'includes/underscore.js'
	],
	pageSettings: {
		loadImages: false,
		loadPlugins: false
	},
	verbose:true,
	logLevel: "debug"
});
var base64logo = null;
casper.start('https://www.google.com/?gws_rd=cr,ssl', function() {
    base64logo = this.base64encode('https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png');
});

casper.run(function() {
    this.echo(base64logo).exit();
});